package com.yanq.liancar.address_selection.view;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/11/6  10:07
 *  @描述       ${TODO}
 */


import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

public class WrapHeightGridView extends GridView {
    public WrapHeightGridView(Context context) {

        this(context, null);

    }



    public WrapHeightGridView(Context context, AttributeSet attrs) {

        this(context, attrs, 0);

    }



    public WrapHeightGridView(Context context, AttributeSet attrs, int defStyleAttr) {

        super(context, attrs, defStyleAttr);

    }



    @Override

    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

        int heightSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);

        super.onMeasure(widthMeasureSpec, heightSpec);

    }
}
